import request from '@/utils/request'

// 查询报事报修列表
export function listRepair_events(query) {
  return request({
    url: '/business/repair_events/list',
    method: 'get',
    params: query
  })
}

// 查询报事报修详细
export function getRepair_events(eventId) {
  return request({
    url: '/business/repair_events/' + eventId,
    method: 'get'
  })
}

// 新增报事报修
export function addRepair_events(data) {
  return request({
    url: '/business/repair_events',
    method: 'post',
    data: data
  })
}

// 修改报事报修
export function updateRepair_events(data) {
  return request({
    url: '/business/repair_events',
    method: 'put',
    data: data
  })
}

// 删除报事报修
export function delRepair_events(eventId) {
  return request({
    url: '/business/repair_events/' + eventId,
    method: 'delete'
  })
}

// 导出报事报修
export function exportRepair_events(query) {
  return request({
    url: '/business/repair_events/export',
    method: 'get',
    params: query
  })
}

// 推进事件流程
export function handleRepair_events(data) {
  return request({
    url: '/business/repair_events/handle',
    method: 'post',
    data: data
  })
}
